package com.huiyou.adminapi.common;

import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class RepeatException {

    @Setter
    @Getter
    private String message;

    public RepeatException() {
        this.message = "account repeat!";
    }

    public RepeatException(String message) {
        this.message = message;
    }
}
